<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/6/27
 * Time: 17:54
 * Project name: PHPTEST
 * File name: 6.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

$ch = curl_init();
$url = "http://phpsrc.dev/git-src/PHPTEST/2017/06/27/1.html";
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
//curl_setopt( $ch, CURLOPT_POSTFIELDS, $data );
$return = curl_exec( $ch );
curl_close( $ch );

$regex4='/<div class=\"tideTable\".*?>.*?<\/div>/ism';
if(preg_match_all($regex4, $return, $matches)){
	print_r($matches);
}else{
	echo '0';
}